package com.meixiang.activity.homes.staging;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.meixiang.R;
import com.meixiang.dialog.TradersPasswordtKeyDialog;
import com.meixiang.main.BaseActivity;
import com.meixiang.view.TitleView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author yinsujun  Created at 2016/5/5 16:36
 */
public class RepaymentActivity extends BaseActivity  {
    @Bind(R.id.title)
    TitleView title;
    @Bind(R.id.repayment_tv_money)
    TextView tvMoney;
    @Bind(R.id.repayment_bt_confirm)
    Button btConfirm;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_repayment);
        ButterKnife.bind(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initTitle() {
        setTitle("还款");

    }

    @Override
    protected void initView() {

    }

    @Override
    protected void setData() {


    }

    @OnClick({R.id.repayment_bt_confirm})
    void click(View view) {
        if (view.equals(btConfirm)) {
//            passwordDialog.showDialog("美分期还款","￥0.00","忘记密码?");
            TradersPasswordtKeyDialog dialog=new TradersPasswordtKeyDialog(this,"美分期还款","0.00", new TradersPasswordtKeyDialog.OnCustomDialogListener() {
                @Override
                public void getPayPassWord(TradersPasswordtKeyDialog paymentKeyDialog, String password) {
                    Intent intent=new Intent(context,RepaymentSuccessActivity.class);
                    startActivity(intent);
                }
            });
        }


    }

    @Override
    public void onClick(View v) {

    }


}
